CONTROL DEVICE X

This command will return the X axis value of the current control device.

  Syntax
Return Integer=CONTROL DEVICE X()
  Returns

This command will return the x axis value of the current control device

  Example Code
rem Prepare Force Feedback (if available)
ForcePresent=0
empty checklist
PERFORM CHECKLIST FOR CONTROL DEVICES
for c=1 to checklist quantity()
if checklist value a(c)=1
SET CONTROL DEVICE checklist string$(c)
ForcePresent=1
endif
next c
rem Display data
cls
print "INPUT EXPRESSION DATA"
print
print "ForcePresent:";ForcePresent
print "control device name:";CONTROL DEVICE NAME$()
print "control device x:";CONTROL DEVICE X();
print " y:";CONTROL DEVICE Y();
print " z:";CONTROL DEVICE Z()
do
loop
end
  See also

INPUT Commands Menu
Index